﻿using DrawTools.Tools;
using System.Windows;

namespace DrawTools.Serialize
{
    public sealed class DrawLengthSerializer : DrawGeometrySerializerBase
    {
        public override DrawGeometryBase Deserialize(DrawingCanvas drawingCanvas)
        {
            var draw = new LengthDrawTool(drawingCanvas);
            draw.DeserializeFrom(this);
            return draw;
        }

        public Point? StartPoint { get; set; }

        public Point? EndPoint { get; set; }

        public double? Length { get; set; }
    }
}